import request from '@/utils/request'

const {
  get: $get,
  post: $post,
  delete: $delete,
  download: $download,
  upload: $upload
} = request

// 查询救援队伍全部
export const riskRescueTeamList = data => {
  return $get('/risk/riskRescueTeam/list', data)
}

// 查询救援队伍列表
export const riskRescueTeamPage = data => {
  return $get('/risk/riskRescueTeam/page', data)
}

// 新增救援队伍
export const riskRescueTeamAdd = data => {
  return $post('/risk/riskRescueTeam/add', data)
}

// 查询救援队伍详情
export const riskRescueTeamDetail = id => {
  return $get('/risk/riskRescueTeam/detail/'+ id)
}

// 更新救援队伍
export const riskRescueTeamUpdate = data => {
  return $post('/risk/riskRescueTeam/update', data)
}

// 删除救援队伍
export const riskRescueTeamDelete = id => {
  return $post('/risk/riskRescueTeam/delete/'+ id)
}

// 导出救援队伍
export const riskRescueTeamExport = (data,fileName) => {
  return $download('/risk/riskRescueTeam/export',data, fileName)
}

// 下载模板
export const riskRescueTeamTemplate = (data,filename) => {
  return $download('/risk/riskRescueTeam/template',data, filename)
}

// 导入
export const riskRescueTeamImport = (formData) => {
  return $upload('/risk/riskRescueTeam/import', formData)
}
